package util

import (
	"fmt"
	"log"
	"runtime"
)

func Log(err error){
_,file,line,_:= runtime.Caller(1)
//log.Println(pc)
//f := runtime.FuncForPC(pc)
log.Printf("[%s]file %s: line %d\n",err,file,line)
//log.Println("func:",f.Name())
log.Fatalln("")
}
func Info(s string){
	_,file,line,_:= runtime.Caller(1)
	//log.Println(pc)
	fmt.Printf("[%s]file :%s line %d\n",s,file,line)
	//f := runtime.FuncForPC(pc)
	//fmt.Println("func:",f.Name())
}